import java.util.Scanner;

public class Delete {


    /**
     * 通过id删除学生信息
     * @param arr
     */
    public static void delete(StudentInfo[]arr){
        Scanner input = new Scanner(System.in);

        System.out.println("请输入要删除的学生的ID");
        int id = input.nextInt();
        if(Judge.judge(id, arr) == -1){
            System.out.println("删除失败");
        }
        else {
            arr[Judge.judge(id, arr)] = null;
        }
    }



}
